


cc.FileUtils:getInstance():setPopupNotify(false)
cc.FileUtils:getInstance():addSearchPath("src_base/")
cc.FileUtils:getInstance():addSearchPath("src/")
cc.FileUtils:getInstance():addSearchPath("res/")

require "config"
require "cocos.init"

require "support/userop"
require "support/PublicFunction"
require "support/SSArray"

require "shareFunc/ShareFunc"
require "shareFunc/Music"

require "ui/UI"


local function main()
    -- require("app.MyApp"):create():run() -- require a.file 和 require a/file 一样
    local scene=cc.Scene:create();
    cc.Director:getInstance():runWithScene(scene)

    --[- 进入游戏根界面层.
    local rootLayer = UI:getInstance()
    scene:addChild( rootLayer )
    rootLayer:start()
end





local status, msg = xpcall(main, __G__TRACKBACK__)
if not status then
    print(msg)
end
